080 counters
您好,在本视频中,我们将学习如何进行计数器应用程序,或者如何在七个 200 CPU 中使用计数器?
Hello, in this video, we will learn how to do counter applications or how can we use counters in a seven 200 CPUs?
我将创建一个新项目。
I will create a new project.
OK,这个新项目就是选择了Kryten C.P.U 226。
OK, and this new project is Kryten C.P.U 226 is selected.
好吧,不过暂时不重要。
OK, but it doesn't matter for a moment.
让我们在这里添加一个计数器。
Let us add to here one up counter in here.
您将看到大厅区域、升降柜台、升降柜台、高速柜台和柜台。
You will see the concourse area and up counter and down counter and up and down counter and high speed counter and counter.
我会给你看什么。
What I will see to you.
这就是反击的意思。
So that is means counter up.
好的,假设这是计数器零,这里是八个输入输入零点零。
OK, let's say this is counter zero and in here that's eight input input zero point zero.
好的,就像这样。
OK, like this.
这是我们的输入零。
This is our input zero.
在这里,我将说重置输入输入为零点一和当前值,假设为五。
And in here I will say for the reset input input zero point one and the present value, let's say five.
好的,当这个计数器对设定值做出反应时会发生什么。
OK, what will happen when this counter reacts to set value.
计数器零接触将被激活,我们将做什么。
Counter zero contact will be active and what will we do.
我们在这里添加一个COYO零点零。
We will add here one COYO zero point zero.
OK,我们编译一下,没有错误。
OK, let's compile it and there is no error.
文件并导出到我的桌面,我会说计数器。
And the file and export and to my desktop I will say counter.
七、两百。
A seven, two hundred.
好的,我将转到我的模拟器并进行很多编程,除了在这里,让我们检查一下这个,好的,但是在这里您可以看到我们完整的项目或程序。
OK, I will go to my simulator and program a lot programming except and in here, let's check counter this one, OK, but in here you can see our complete project or program.
现在我们可以从CPA开始,CPA就是这样的情况。
Now we can start it from the CPA and CPA is in the situation.
让我们提供意见。
And let us give input.
零点零、一、二、三、四、五。
Zero point zero and one and two and three and four and five.
OK,在这个输入的第五个输入结束时输入零点零影响你可以在这里查看。
OK, at the end of the fifth input of this input input zero point zero impact you can check here.
Q 零点为零。
Q zero point zero.
因此输出零处于活动状态。
So output zero is active.
现在,如果我现在说,将输入重置为零点一。
Now if I say now, reset input zero point one.
所以这被重置并且输出消失了。
So this is reset it and output is gone.
再一次。
And once more.
一二。
One, two.
三四。
Three and four.
五,好的,在第五次放置结束时,我们有一个输出,我们也可以测试想要倒数指令,我们可以删除它,我们可以将这里的计数器放在计数器区域计数器向下。
And five, OK, at the end of the fifth put, we have an output and also we can test wants to count down instruction, we can delete it, we can put here counter down in counter area counters down.
好吧,假设计数器为零,当前值又是五,并将其导出到此处的同一文件中。
OK, let's say counter zero and the present value is again five and export it to here the same file.
说是,在这里,我们需要做的,我们需要停下来,我们需要再次说主程序,是的,接受,在这里,好的,现在我们有计数器,让我们继续开始心肺复苏和党的由于战斗而停止的位置。
Say yes, and in here, what we need to do, we need to go stop and we need to say Lord program again and yes and accept and in here, OK, now we have down counter and let us continue start CPR and the party's position in stop because of fight.
我们将。
We will.
检查程序中是否存在不可执行的指令。
Check once not executable instruction exist in the program.
让我们开始我们的节目吧。
Let's go to our program and let's go.
编译一下,没有错误,没有错误,它的计数器,我们现在的值是五,好吗?
Compile it, there is no error, there is no error, and it's counter and our present value is five, OK?
在模拟器中它说有错误,但没有错误。
And in simulator it's saying there's an error but there is no error.
我们会怎样做?
What will we do?
我们将从这个值开始下降。
We will go down from this value.
好的,从五点开始,我们将进入四点、三点、二点、一点。
OK, from five, we will go to four and three and two and one.
然后我们将得到输出并编译一次。
And then we will get output and let's compile it once.
我会检查一下没有问题。
I will check there is no problem.
但在模拟器中,它可能已被删除并接受,在这里我正在检查。
But in simulator it maybe it's deleted and accepted and in here go and I am checking.
这是对的。
This is correct.
现在我们可以测试一次。
And now we can test once.
好的,但是指令 CTD 零和五,有问题。
OK, but instruction CTD zero and five, there is a problem.
好吧,没关系。
OK, it doesn't matter.
所以在这里,我们可以说我们可以使用我们的计数器与这里的向上和向下计数器。
So in here, what can we say we can use our counters with here up and down counter.
这只是大量的输入。
And this is just a lot input.
好的,这不是最近的输入。
OK, this is not a recent input.
我们有很多我们不会在这里争论的价值,好吧,我们可以看到现在的价值,但是我们将在这里记录哪些价值。
We have a lot which we will not fight value to here, OK, present value that we can see, but which value that we are going to log to here.
我们可以在这里说,例如,十个十的值将被Lawder计数器确定,并且折扣值将随着每次输入零点零而下降,并且每次和每个桩和一个零计数达到零。
And we can say to here, for example, ten ten value is going to Lawder to counter OK and discounted value will be go down with the input zero point zero each time and each time and each piles and one count of zero is reached to zero.
我们会做什么,计数器为零。
And what will we do, counter zero.
联系将立即激活,我们将从这里获得输出。
Contact will be active immediately and we will get output from here.
另外,我们可以只检查一次来对给定的计数器名称进行向上和向下计数,例如,计数到 2 并显示当前值。
Also, we can just check once to counter up and down its given counter name, for example, count to two and present value.
例如,我们可以说,例如,20,在这里计算我们的输入。
For example, we can say to, for example, 20 and in here, count our input.
例如,输入零点至。
For example, input zero point to.
这里为此倒计时输入,我们可以说输入零点三的输入和我们可以说输入零点四的输入。
Here and count down input for this, we can say input zero point three and the input that we can say input zero point four.
好的,这可以是计数器向上和向下指令,像这样运行,输入零点二将高于该计数器将上升,并且这将在那一刻激活。
OK, and this can be counter up and down instructions running like this with the input zero point two will be higher than this counter will go up and this will be active than that moment.
这个控制就会下降。
This control will go down.
每一个输入,每一个脉冲,都会一个接一个的递增或递减指令。
Each input, each pulse, one by one will be increment or decrement instruction like that.
例如,这是该计数器的复位输入。
And this is the reset input of this counter, for example.
但我已经完成了这段视频,结束了柜台。
But I am finished for this video, for the counters.
这些对我们来说确实很重要。
These are really important for us.
只是上下的较量。
Just up and down conter.
你可以像这样使用它。
And you can use it like this.
您可以将输入放在这里,也可以将零点放为零,就像内部继电器一样。
You can put your here your input or you can put your zero point zero like an internal relay's like that.
然后,您可以像这些说明一样轻松地使用 7 200 遍中的计数器。
And then you can work with the counters in a seven 200 passes like these instructions with these instructions easily.
我已经完成这个视频了。
I am finished for this video.
下一个视频见。
See you in the next video.